package com.oxygen.pt.mapper;

import com.oxygen.pt.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    User queryByAccount(String account);

    @Insert("INSERT INTO user (user_id, family_name, name, phone, account, password, create_time, update_time) " +
            "VALUES (#{userId}, #{familyName}, #{name}, #{phone}, #{account}, #{password}, #{createTime}, #{updateTime})")
    void addUser(User user);
}
